package com.yj.web.service;


import com.yj.web.dao.po.admin.Employee;
import com.yj.web.dao.po.admin.Introducer;
import com.yj.web.dao.po.admin.UserProjectByIntroducer;

import java.util.List;

/**
 * Created by yyl on 17/7/26.
 */
public interface IntroducerService {
    public List<Introducer> listIntroducer(long employeeId, int page, int size);
    public Introducer getIntroducerById(long id);
    public int countIntroducer(long employeeId);
    public int deleteIntroducerById(long id);
    public long insertIntroducer(Introducer introducer);
    public boolean updateIntroducer(Introducer introducer);
    public boolean updateIntroducerStatus(int id, int status);


    public List<UserProjectByIntroducer> listUserProjectByIntroducer(String nick_name, String introducer_name, String phone, long employeeId, int page, int size);
    public int countUserProjectByIntroducer(String nick_name, String introducer_name, String phone, long employeeId);
    public List<Employee> introducerRelatedEmployee(long employeeId);

    public boolean updateQrcode(int id, String QRcode);
    public String getIntroPhoneByOpenId(String openId);
}
